<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:65:"D:\Wamp\wamp64\www\canny/app/admin\view\home\consultant_edit.html";i:1533370656;s:66:"D:\Wamp\wamp64\www\canny/app/admin\view\layout\edit_btn_group.html";i:1531444261;}*/ ?>
<form action="<?php echo url(); ?>" method="post" class="form_single">
    <div class="box">
        <div class="box-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label>标题</label>
                        <span class="">（文章标题名称）</span>
                        <input class="form-control" name="consultant_name" placeholder="请输入文章标题名称" value="<?php echo (isset($info['consultant_name']) && ($info['consultant_name'] !== '')?$info['consultant_name']:''); ?>" type="text">
                    </div>
                </div>

                <div class="col-md-6">
                    <div class="form-group">
                        <label>栏目排序</label>
                        <span class=""></span>
                        <input class="form-control" name="sort" placeholder="请输入序号" value="<?php echo (isset($info['sort']) && ($info['sort'] !== '')?$info['sort']:0); ?>" type="text">
                    </div>
                </div>

                <div class="col-md-6">
                    <div class="form-group">
                        <label>描述</label>
                        <span class="">（文章描述信息/简介）</span>
                        <textarea class="form-control" name="describe" rows="3" placeholder="请输入文章描述信息/简介"><?php echo (isset($info['describe']) && ($info['describe'] !== '')?$info['describe']:''); ?></textarea>
                    </div>
                </div>

                <div class="col-md-6">
                    <div class="form-group">
                        <label>封面图片</label>
                        <span class="">（建议上传 384×439 的图片）</span>
                        <br/>
                        <?php $photo_id = (isset($info['cover_id']) && ($info['cover_id'] !== '')?$info['cover_id']:'0'); ?>
                        <?php echo widget('file/index', ['name' => 'photo_id', 'value' => $photo_id, 'type' => 'img']); ?>
                    </div>
                </div>



                <div class="box-footer">

                    <input type="hidden" name="id" value="<?php echo (isset($info['id']) && ($info['id'] !== '')?$info['id']:'0'); ?>"/>

                    <button  type="submit" class="btn ladda-button ajax-post" data-style="slide-up" target-form="form_single">
    <span class="ladda-label"><i class="fa fa-send"></i> 确 定</span>
</button>

<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>

                </div>

            </div>
        </div>
</form>